package com.zero.clinic.service.impl;

import com.zero.clinic.mapper.PatientRegisterMapper;
import com.zero.clinic.pojo.PatientRegister;
import com.zero.clinic.pojo.PatientRegisterExample;
import com.zero.clinic.service.PatientRegisterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PatientRegisterServiceImpl implements PatientRegisterService {

    @Resource
    private PatientRegisterMapper patientRegisterMapper;

    @Override
    public List<PatientRegister> selectByExample(PatientRegisterExample example) {
        return patientRegisterMapper.selectByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long patientRegisterId) {
        return patientRegisterMapper.deleteByPrimaryKey(patientRegisterId);
    }

    @Override
    public int insert(PatientRegister record) {
        return patientRegisterMapper.insert(record);
    }

    @Override
    public int insertSelective(PatientRegister record) {
        return patientRegisterMapper.insertSelective(record);
    }

    @Override
    public PatientRegister selectByPrimaryKey(Long patientRegisterId) {
        return patientRegisterMapper.selectByPrimaryKey(patientRegisterId);
    }

    @Override
    public int updateByPrimaryKeySelective(PatientRegister record) {
        return patientRegisterMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByIds(String[] patientRegisterIds) {
        return patientRegisterMapper.deleteByIds(patientRegisterIds);
    }
}
